public class sanShape extends Shape {
    public double b1;
    public double b2;
    public  double b3;

    public sanShape(double b1, double b2, double b3) {
        this.b1 = b1;
        this.b2 = b2;
        this.b3 = b3;
    }

    @Override
    public void C() {
        System.out.println("周长为：" + b1+b2+b3);
    }

    @Override
    public void S() {
        double p = (b1+b2+b3)/2;
        System.out.println("面积为：" + Math.sqrt(p * (p - b1) * (p - b2) * (p - b3)));
    }
}
